package com.wjpeng.wms.mapper;

import com.wjpeng.wms.domain.Department;
import com.wjpeng.wms.domain.ProductStock;
import com.wjpeng.wms.query.ProductStockQueryObject;
import com.wjpeng.wms.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductStockMapper {
    int insert(ProductStock record);

    int updateByPrimaryKey(ProductStock record);

    ProductStock selectByProductAndDepot(@Param("productId") Long productId,
                                         @Param("depotId") Long depotId);

    Integer queryCount(ProductStockQueryObject qo);

    List<ProductStock> queryLimit(ProductStockQueryObject qo);

}